#include "Powerup.h"


Powerup::Powerup(double x, double y, double z, double sX, double sY, double sZ, const char *path, char type, bool dynamic) : Generic()
{


    if(type == 's')
    {
        this->sphere();
        this->createBoundingVolume(Solid::SPHERE);
    }
    else if(type == 'b')
    {
        this->box();
        this->createBoundingVolume(Solid::BOX);
    }

    if(!dynamic)
    {
        this->staticBody();
    }

    this->position(x,y,z);
    this->scale(sX,sY,sZ);
    this->loadTexture(path);
    body->friction() = 0.99;

}

Powerup::~Powerup()
{
    //dtor
}



